Skip to content

Conversation

@nevermarine
Copy link
Collaborator

@nevermarine nevermarine commented Jul 14, 2025

Description

Add linting to e2e tests.

Why do we need it, and what problem does it solve?

What is the expected result?

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: ci
type: chore
summary: add linting to e2e tests

@nevermarine nevermarine added this to the v0.23.0 milestone Jul 14, 2025
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
@nevermarine nevermarine marked this pull request as ready for review July 14, 2025 16:13
func PrepareProject(testData string) {
kustomization := fmt.Sprintf("%s/%s", testData, "kustomization.yaml")
ns, err := kustomize.GetNamespace(kustomization)
ns, _ := kustomize.GetNamespace(kustomization)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better not to ignore the error handling, but to add it

namePrefix, err := GetNamePrefix()
if err != nil {
}
namePrefix, _ := GetNamePrefix()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better not to ignore the error handling, but to add it

Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maksim Fedotov <[email protected]>
@nevermarine nevermarine added the e2e/run Run e2e test on cluster of PR author label Jul 15, 2025
@deckhouse-BOaTswain
Copy link
Contributor

deckhouse-BOaTswain commented Jul 15, 2025

Workflow has started.
Follow the progress here: Workflow Run

The target step completed with status: success.

@deckhouse-BOaTswain deckhouse-BOaTswain removed the e2e/run Run e2e test on cluster of PR author label Jul 15, 2025
danilrwx
danilrwx previously approved these changes Jul 15, 2025
@nevermarine nevermarine force-pushed the chore/ci/add-linting-to-the-tests branch 2 times, most recently from 7a7e5e0 to ae3edba Compare July 16, 2025 11:42
@nevermarine nevermarine merged commit 92f9360 into main Jul 16, 2025
23 of 24 checks passed
@nevermarine nevermarine deleted the chore/ci/add-linting-to-the-tests branch July 16, 2025 14:02
yachmenevas pushed a commit that referenced this pull request Oct 15, 2025
* chore(tests): add linting to e2e tests

Signed-off-by: Maksim Fedotov <[email protected]>

* fix newline

Signed-off-by: Maksim Fedotov <[email protected]>

* fix name

Signed-off-by: Maksim Fedotov <[email protected]>

* remove prune path

Signed-off-by: Maksim Fedotov <[email protected]>

* fix e2e config

Signed-off-by: Maksim Fedotov <[email protected]>

* handle errors

Signed-off-by: Maksim Fedotov <[email protected]>

* update .golangci.yaml

Signed-off-by: Maksim Fedotov <[email protected]>

* fix updatedVmObj & updatedVmObjC

Signed-off-by: Maksim Fedotov <[email protected]>

* fix %s in fmt.Errorf

Signed-off-by: Maksim Fedotov <[email protected]>

* fix insecureTls

Signed-off-by: Maksim Fedotov <[email protected]>

* fix ApiVersion

Signed-off-by: Maksim Fedotov <[email protected]>

* fix VmConfiguration

Signed-off-by: Maksim Fedotov <[email protected]>

* fix Vm* variables

Signed-off-by: Maksim Fedotov <[email protected]>

* fix SshUser

Signed-off-by: Maksim Fedotov <[email protected]>

* fix SshOptions

Signed-off-by: Maksim Fedotov <[email protected]>

* fix VmConf

Signed-off-by: Maksim Fedotov <[email protected]>

* fix SshCommand

Signed-off-by: Maksim Fedotov <[email protected]>

* fix LocalSshOpts

Signed-off-by: Maksim Fedotov <[email protected]>

* fix VmLabelAnnotation & GetFullApiResourceName

Signed-off-by: Maksim Fedotov <[email protected]>

* golangci-lint run --fix

Signed-off-by: Maksim Fedotov <[email protected]>

* fix stylecheck dot imports error

Signed-off-by: Maksim Fedotov <[email protected]>

* disable all initials except VM and SSH

Signed-off-by: Maksim Fedotov <[email protected]>

* fix Vm->VM ST1003 errors by stylecheck

Signed-off-by: Maksim Fedotov <[email protected]>

* fix fmt.Errorf() formatting

Signed-off-by: Maksim Fedotov <[email protected]>

* replace other initialisms

Signed-off-by: Maksim Fedotov <[email protected]>

* golangci-lint --fix

Signed-off-by: Maksim Fedotov <[email protected]>

---------

Signed-off-by: Maksim Fedotov <[email protected]>
Signed-off-by: Maxim Fedotov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants